package ntd.util.frame.msg.service.handle.jpush.util;

import ntd.util.frame.msg.service.context.MsgContext;
import ntd.util.frame.msg.bo.MsgConfig;
import ntd.util.modular.function.entity.ChannelBusiness;

public class UtilJPush {

    public static MsgConfig transform(MsgContext param) {
        MsgConfig msgConfig = new MsgConfig();
        ChannelBusiness channelBusiness = param.getChannelBusiness();
        msgConfig.setAppKey(channelBusiness.getAppKey());
        msgConfig.setSecret(channelBusiness.getAppSecret());
        return msgConfig;
    }
}
